package com.xjzp.business.db.bo.impl;

import com.bjf.exception.BJFException;
import com.xjzp.business.db.bo.iface.I_TEST_BO;
import com.xjzp.business.db.hibernate.dao.ScAdminDAO;
import com.xjzp.business.db.hibernate.dao.TbRoleDAO;
import com.xjzp.business.db.hibernate.po.ScAdmin;
import com.xjzp.business.db.hibernate.po.TbRole;

public class TEST_BO_IMPL implements I_TEST_BO {
	private ScAdminDAO scAdminDAO;
	private TbRoleDAO tbRoleDAO;

	public void updateScAdmin(ScAdmin s) throws BJFException {
		// TODO Auto-generated method stub
		this.scAdminDAO.update(s);
	}

	public void updateTbRole(TbRole t) throws BJFException {
		// TODO Auto-generated method stub
		this.tbRoleDAO.update(t);
	}
	
	public void updateScAdminAndTbRole(ScAdmin s, TbRole t) throws BJFException {
		// TODO Auto-generated method stub
		updateScAdmin(s);
		updateTbRole(t);
		
	}

	public ScAdminDAO getScAdminDAO() {
		return scAdminDAO;
	}

	public void setScAdminDAO(ScAdminDAO scAdminDAO) {
		this.scAdminDAO = scAdminDAO;
	}

	public TbRoleDAO getTbRoleDAO() {
		return tbRoleDAO;
	}

	public void setTbRoleDAO(TbRoleDAO tbRoleDAO) {
		this.tbRoleDAO = tbRoleDAO;
	}

}
